home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-04 | 938 b | 42 lines | [TEXT/MPS ] |
- FSCompletion PROC EXPORT
-
- LINK A6,#0 ; Link for the debugger.
- MOVEM.L A5,-(SP) ; Preserve A5 register.
-
- MOVE.L A0, -(SP) ; Pass PB pointer as the parameter.
- MOVE.L -8(A0),A5 ; Set A5 to passed value (ourA5).
- MOVE.L -4(A0),A0 ; A0 = real completion routine address.
- JSR (A0) ; Transfer control to ourCompletion.
-
- MOVEM.L (SP)+,A5 ; Restore A5 register.
- UNLK A6 ; Unlink.
- RTS ; Return.
-
- STRING ASIS ; The debugger string.
- DC.B $8C,'FSCompletion',0
- DC.W $0000
- STRING PASCAL
-
- ENDP
-
- TCPCompletion PROC EXPORT
-
- LINK A6,#0 ; Link for the debugger.
-
- MOVE.L 8(A6), -(SP) ; Pass PB pointer as the parameter.
- MOVE.L -4(A0),A0 ; A0 = real completion routine address.
- JSR (A0) ; Transfer control to ourCompletion.
-
- UNLK A6 ; Unlink.
- RTS ; Return.
-
- STRING ASIS ; The debugger string.
- DC.B $8D,'TCPCompletion'
- DC.W $0000
- STRING PASCAL
-
- ENDP
- END
-
- asm -wb "{active}"
-